<template>
  <el-dialog title="请输入密码" :visible.sync="dialogFormVisible">
    <el-form>
      <el-form-item label="密码" label-width="120px">
        <el-input v-model="password" />
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormVisible = false">取 消</el-button>
      <el-button type="primary" @click="surePasswordClick">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      dialogFormVisible: false,
      password: ''
    }
  },
  methods: {
    surePasswordClick() {
      this.dialogFormVisible = false
      this.$emit('surePasswordClick', this.password)
    }
  }
}
</script>

<style scoped>

</style>
